higgsjs / Higgs

Higgs JavaScript Virtual Machine
877 stars 62 forks source link

String.prototype.split bug in v8bench/regexp #173

Closed maximecb closed 9 years ago

maximecb commented 9 years ago

The regexp benchmark from the V8 suite triggers a bug in stdlib/string.js:

TypeError: constructor must be function $rt_throwExc(2E75) ("runtime/runtime.js"@138:1) $rt_instanceof(3014) ("runtime/runtime.js"@2879:31) string_split(D164) ("stdlib/string.js"@667:9) runBlock1(26C0F) ("benchmarks/v8bench/regexp.js"@282:7) run(272C6) ("benchmarks/v8bench/regexp.js"@1749:7) RegExpRun(25ABC) ("benchmarks/v8bench/regexp.js"@52:3) RegExpSetup(25AB4) ("benchmarks/v8bench/regexp.js"@48:3) benchmarks_v8bench_drv_regexp_js(2653B) ("benchmarks/v8bench/drv-regexp.js"@1:1)

The regexp benchmark can be run with the following command: ./higgs benchmarks/v8bench/base.js benchmarks/v8bench/regexp.js benchmarks/v8bench/drv-regexp.js

maximecb commented 9 years ago

Bug fixed!