OS:windows
v8 version:7.6.303.22
The same situation also occurs when using v8_shell.exe.The script is below:
String.prototype.split.call('aaaaaaaaaa', new RegExp(Array(4096).join(String
.fromCharCode(36, 94)) + Array(1025).join(String.fromCharCode(126, 29)) + 
Array(257).join(String.fromCharCode(101, 10, 43)), 'i'))

When I use Chrome 76.0.3809.80 (v8 version 7.6.303.24), this script output 
is as follows:
["aaaaaaaaaa"]

Then I run these codes to tracking in vs2017:
v8::Local<v8::String> source =
v8::String::NewFromUtf8(isolate, "String.prototype.split.call('aaaaaaaaaa', 
new RegExp(Array(4096).join(String.fromCharCode(36, 94)) + 
Array(1025).join(String.fromCharCode(126, 29)) + 
Array(257).join(String.fromCharCode(101, 10, 43)), 'i'))",
v8::NewStringType::kNormal).ToLocalChecked();

// Compile the source code.
v8::Local<v8::Script> script =
v8::Script::Compile(context, source).ToLocalChecked();

// Run the script to get the result.
v8::Local<v8::Value> result = script->Run(context).ToLocalChecked();

// Convert the result to an UTF8 string and print it.
v8::String::Utf8Value utf8(isolate, result);
printf("%s\n", *utf8);

then I got a stark overflow error.Could someone give me a hand?

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/2a58065a-cdbf-4c7e-aa73-78e140cf68bb%40googlegroups.com.

Reply via email to