-
Notifications
You must be signed in to change notification settings - Fork 5.7k
feat: upgrade V8 to 12.8 #24693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: upgrade V8 to 12.8 #24693
Conversation
4db1498
to
6e6c160
Compare
Let's change the title to |
Please rebase |
ext/node/lib.rs
Outdated
@@ -836,3 +836,12 @@ impl<'a> deno_package_json::fs::DenoPkgJsonFs for DenoPkgJsonFsAdapter<'a> { | |||
.map_err(|err| err.into_io_error()) | |||
} | |||
} | |||
|
|||
pub fn get_host_defined_options<'s>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this one be named create_host_defined_options
?
let source = v8::script_compiler::Source::new(source_str, None); | ||
let resource_name = v8::undefined(scope); | ||
let host_defined_options = get_host_defined_options(scope); | ||
let origin = v8::ScriptOrigin::new( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please a new API for v8::ScriptOrigin
? 🙏 It should accept a scope and an options struct, with only resource_name
being required.
ext/node/polyfills/01_require.js
Outdated
const compiledWrapper = wrapSafe(filename, content, this, format); | ||
|
||
if (format === "module") { | ||
// TODO: implement require esm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please open an issue and link it here?
ext/node/polyfills/01_require.js
Outdated
if (StringPrototypeEndsWith(filename, ".js")) { | ||
const pkg = op_require_read_closest_package_json(filename); | ||
if (pkg && pkg.typ === "module") { | ||
if (pkg?.typ === "module") { | ||
// TODO: implement require esm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
Uh oh!
There was an error while loading. Please reload this page.