mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Issue #80 - Stop building non-generated dom/binding files as UNIFIED_SOURCES
Also fix deprot
This commit is contained in:
parent
cf9ac0b791
commit
a867e3a0c0
5 changed files with 13 additions and 3 deletions
|
|
@ -4,8 +4,12 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
#include "jswrapper.h"
|
||||||
#include "WebIDLGlobalNameHash.h"
|
#include "WebIDLGlobalNameHash.h"
|
||||||
#include "js/GCAPI.h"
|
#include "js/GCAPI.h"
|
||||||
|
#include "XrayWrapper.h"
|
||||||
|
#include "XPCWrapper.h"
|
||||||
|
#include "mozilla/dom/Selection.h"
|
||||||
#include "mozilla/HashFunctions.h"
|
#include "mozilla/HashFunctions.h"
|
||||||
#include "mozilla/Maybe.h"
|
#include "mozilla/Maybe.h"
|
||||||
#include "mozilla/dom/DOMJSProxyHandler.h"
|
#include "mozilla/dom/DOMJSProxyHandler.h"
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
#define mozilla_dom_WebIDLGlobalNameHash_h__
|
#define mozilla_dom_WebIDLGlobalNameHash_h__
|
||||||
|
|
||||||
#include "js/RootingAPI.h"
|
#include "js/RootingAPI.h"
|
||||||
|
#include "nsString.h"
|
||||||
#include "nsTArray.h"
|
#include "nsTArray.h"
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ LOCAL_INCLUDES += [
|
||||||
'/media/webrtc/signaling/src/peerconnection',
|
'/media/webrtc/signaling/src/peerconnection',
|
||||||
]
|
]
|
||||||
|
|
||||||
UNIFIED_SOURCES += [
|
SOURCES += [
|
||||||
'BindingUtils.cpp',
|
'BindingUtils.cpp',
|
||||||
'CallbackInterface.cpp',
|
'CallbackInterface.cpp',
|
||||||
'CallbackObject.cpp',
|
'CallbackObject.cpp',
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,13 @@
|
||||||
#include "jsapi.h"
|
#include "jsapi.h"
|
||||||
#include "js/RootingAPI.h"
|
#include "js/RootingAPI.h"
|
||||||
|
|
||||||
|
#include "jswrapper.h"
|
||||||
|
#include "nsCOMArray.h"
|
||||||
|
#include "nsContentUtils.h"
|
||||||
|
#include "nsCycleCollectionParticipant.h"
|
||||||
#include "nsIScriptError.h"
|
#include "nsIScriptError.h"
|
||||||
#include "nsString.h"
|
#include "nsString.h"
|
||||||
|
#include "nsStringFwd.h"
|
||||||
|
|
||||||
class nsScriptErrorNote final : public nsIScriptErrorNote {
|
class nsScriptErrorNote final : public nsIScriptErrorNote {
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ using namespace mozilla::dom;
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
static nsCString
|
static nsCString
|
||||||
FormatStackString(JSContext* cx, HandleObject aStack) {
|
FormatStackString(JSContext* cx, JS::HandleObject aStack) {
|
||||||
JS::RootedString formattedStack(cx);
|
JS::RootedString formattedStack(cx);
|
||||||
|
|
||||||
if (!JS::BuildStackString(cx, aStack, &formattedStack)) {
|
if (!JS::BuildStackString(cx, aStack, &formattedStack)) {
|
||||||
|
|
@ -111,7 +111,7 @@ nsScriptErrorWithStack::ToString(nsACString& /*UTF8*/ aResult)
|
||||||
}
|
}
|
||||||
|
|
||||||
JSContext* cx = jsapi.cx();
|
JSContext* cx = jsapi.cx();
|
||||||
RootedObject stack(cx, mStack);
|
JS::RootedObject stack(cx, mStack);
|
||||||
nsCString stackString = FormatStackString(cx, stack);
|
nsCString stackString = FormatStackString(cx, stack);
|
||||||
nsCString combined = message + NS_LITERAL_CSTRING("\n") + stackString;
|
nsCString combined = message + NS_LITERAL_CSTRING("\n") + stackString;
|
||||||
aResult.Assign(combined);
|
aResult.Assign(combined);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue