On Thu, Jul 27, 2017 at 9:34 AM, aseaday lonsdale <[email protected]> wrote:
> I replace the directory deps/v8 with the node 6.1.0 source code and build a
> node. When I try to test new features of WebAssembly  I met an error
>
> ```javascript
>> WebAssembly.compile(arrayBuffer)
> Promise {
>   <pending>,
>   domain:
>    Domain {
>      domain: null,
>      _events: { error: [Function: debugDomainError] },
>      _eventsCount: 1,
>      _maxListeners: undefined,
>      members: [] } }
>> FATAL ERROR: v8::HandleScope::CreateHandle() Cannot create a handle
>> without a HandleScope
>  1: node::Abort() [/Users/bisunday/Workplace/node/out/Release/node]
>  2: node::FatalException(v8::Isolate*, v8::Local<v8::Value>,
> v8::Local<v8::Message>) [/Users/bisunday/Workplace/node/out/Release/node]
>  3: v8::Utils::ReportApiFailure(char const*, char const*)
> [/Users/bisunday/Workplace/node/out/Release/node]
>  4: v8::internal::HandleScope::Extend(v8::internal::Isolate*)
> [/Users/bisunday/Workplace/node/out/Release/node]
>  5: v8::internal::SaveContext::SaveContext(v8::internal::Isolate*)
> [/Users/bisunday/Workplace/node/out/Release/node]
>  6: v8::internal::wasm::AsyncCompileJob::CompileTask::RunInternal()
> [/Users/bisunday/Workplace/node/out/Release/node]
>  7: v8::platform::DefaultPlatform::PumpMessageLoop(v8::Isolate*,
> v8::platform::MessageLoopBehavior)
> [/Users/bisunday/Workplace/node/out/Release/node]
>  8: node::Start(v8::Isolate*, node::IsolateData*, int, char const* const*,
> int, char const* const*) [/Users/bisunday/Workplace/node/out/Release/node]
>  9: node::Start(uv_loop_s*, int, char const* const*, int, char const*
> const*) [/Users/bisunday/Workplace/node/out/Release/node]
> 10: node::Start(int, char**)
> [/Users/bisunday/Workplace/node/out/Release/node]
> 11: start [/Users/bisunday/Workplace/node/out/Release/node]
> 12: 0x2
> ```
> So what could I do.

I believe this has been explained to you in the Node.js issue[0] but
for posterity, simply swapping out node's in-tree copy of V8 for
another won't work.  Crashes and other bugs are to be expected,
assuming it even builds.

[0] https://github.com/nodejs/node/issues/14509

-- 
-- 
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- 
You received this message because you are subscribed to the Google Groups 
"v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to