Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions NativeScript/runtime/DataWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -616,11 +616,6 @@ class WorkerWrapper : public BaseDataWrapper {
const std::string& source,
const std::string& stackTrace, int lineNumber,
bool async);
v8::Local<v8::Object> ConstructErrorObject(v8::Local<v8::Context> context,
std::string message,
std::string source,
std::string stackTrace,
int lineNumber);
};

} // namespace tns
Expand Down
6 changes: 6 additions & 0 deletions NativeScript/runtime/LazyGlobals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "Base64.h"
#include "BuiltinLoader.h"
#include "Helpers.h"
#include "Messaging.h"
#include "StructuredSerialization.h"
#include "TextEncoding.h"

Expand Down Expand Up @@ -39,6 +40,11 @@ constexpr LazyGlobalEntry kLazyGlobals[] = {
// events.js is an eager builtin (Events::Init), so this row never runs a
// file: the read hits the exports cache and only the placement is lazy.
{"CustomEvent", "CustomEvent", BuiltinExports<BuiltinId::kEvents>},
{"MessageEvent", "MessageEvent", BuiltinExports<BuiltinId::kMessageEvent>},
{"MessagePort", "MessagePort", messaging::GetMessageChannelExports},
{"MessageChannel", "MessageChannel", messaging::GetMessageChannelExports},
{"BroadcastChannel", "BroadcastChannel",
messaging::GetBroadcastChannelExports},
};

void LazyGlobalGetter(Local<v8::Name> property,
Expand Down
Loading
Loading