Skip to content

Commit 1dca76d

Browse files
committed
fix v8 build
1 parent 5dfcf3e commit 1dca76d

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

NativeScript/runtime/modules/worker/MessageJSON.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Created by Eduardo Speroni on 11/22/23.
55
// Copyright © 2023 Progress. All rights reserved.
66

7-
// #ifndef TARGET_ENGINE_V8
7+
#ifndef TARGET_ENGINE_V8
88

99
#include "js_native_api.h"
1010
#include "MessageJSON.h"
@@ -270,4 +270,4 @@ Message::Message(MallocedBuffer<char>&& payload)
270270
}; // namespace worker
271271
}; // namespace nativescript
272272

273-
// #endif // TARGET_ENGINE_V8
273+
#endif // TARGET_ENGINE_V8

build_nativescript.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ BUILD_MACOS=$(to_bool ${BUILD_MACOS:=false}) # disable by default for now
3131
VERBOSE=$(to_bool ${VERBOSE:=false})
3232
BUILD_MACOS_CLI=$(to_bool ${BUILD_MACOS_CLI:=false})
3333
EMBED_METADATA=$(to_bool ${EMBED_METADATA:=false})
34-
CONFIG_BUILD=Debug
34+
CONFIG_BUILD=RelWithDebInfo
3535
CONFIG_SIMPLE=Debug
3636

3737
ANY_FRAMEWORK=$(to_bool ${ANY_FRAMEWORK:=false})

cli_tests/worker.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ console.log("Hello from Worker!");
33
globalThis.onmessage = (e) => {
44
console.log("Worker received message:", e.data);
55
const sab = e.data;
6-
console.log("Worker sab:", sab.length);
76
const view = new Int32Array(sab);
87
console.log("Worker view[0]:", view[0]);
98
view[0] = 100;

0 commit comments

Comments
 (0)