higgsjs / Higgs

Higgs JavaScript Virtual Machine
875 stars 62 forks source link

sunspider/string-tagcloud fails #110

Closed maximecb closed 10 years ago

maximecb commented 10 years ago

There seems to be some error, possibly in the regex engine, which causes string-tagcloud to throw an exception. Seems to be the benchmark's own implementation of a JSON parser throwing an error, probably due to some non-spec-conformant behavior in Higgs. I suspect that our regexp implementation may be at fault.

It may be difficult to debug, the best strategy may be to find where the behavior of Higgs differs from that of V8. Another possibility would be to intercept the regexp match calls and log the results, see if the Higgs regexp implementation behaves properly.

zimbabao commented 10 years ago

var str = " "; var val = /[\s]/.test(str); print(val); // expected true, prints null

Above code is reduced test case for the the failure (there may be more, but this is the first stumbling block.

zimbabao commented 10 years ago

Fixed the issue, gitthub issue causing failures while pushing it.

maximecb commented 10 years ago

Thank you sir, you are a wizard :+1: