nu7hatch / mustang

(proof-of-concept) Awesome V8 JavaScript engine embedded into Ruby's shiny body.
http://ci.nu7hat.ch/job/Mustang
106 stars 5 forks source link

Null character is interpreted as string terminator inside JS/Ruby strings #13

Open lautis opened 13 years ago

lautis commented 13 years ago
ruby-1.9.2-p180 :009 > Mustang::Context.new.eval("(function() { return \"\\0foo\"; }())").length
 => 0

See cowboyd/therubyracer#78

nu7hatch commented 13 years ago

Thanks, i'll apply fixes in free time.