Skip to content

V8 warnings crash process within DisallowJavascriptExecutionScope #63473

Description

@Renegade334

Version

27.0.0-pre

Platform

*

Subsystem

No response

What steps will reproduce the bug?

For example, enter the reproduction from #24365 inside REPL with previews on, which evaluates the final expression via the inspector:

function AsmModule() {
  'use asm';
  function add(a, b) {
    a = a | 0;
    b = b | 0;
    return a + b;
  }
}
AsmModule();

How often does it reproduce? Is there a required condition?

Always.

What is the expected behavior? Why is that the expected behavior?

Either print the V8 warning, or do nothing.

What do you see instead?

#
# Fatal error in , line 0
# Invoke in DisallowJavascriptExecutionScope
#
#
#
#FailureMessage Object: 0x7ffd6a1b7cd0
----- Native stack trace -----

 1: 0xa3daa1  [node]
 2: 0x278ece1 V8_Fatal(char const*, ...) [node]
 3: 0xdb70cd  [node]
 4: 0xdb6465  [node]
 5: 0xc4d00b v8::Function::Call(v8::Isolate*, v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) [node]
 6: 0xa4304c node::ProcessEmitWarningGeneric(node::Environment*, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >) [node]
 7: 0x998ee6 node::errors::PerIsolateMessageListener(v8::Local<v8::Message>, v8::Local<v8::Value>) [node]
 8: 0xde02c0  [node]
 9: 0x126f67e  [node]
10: 0xccb062  [node]
11: 0xccc4ee  [node]
12: 0xccce5b  [node]
13: 0xd4dc95  [node]
14: 0x132d963  [node]
15: 0x1a46a76  [node]

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions