1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

ensure that string can hold values outside the BMP

This commit is contained in:
Charles Lowell 2012-06-06 04:08:41 -05:00
parent 155cd68d20
commit 47a9461e23

8
spec/c/string_spec.rb Normal file
View file

@ -0,0 +1,8 @@
require 'spec_helper'
describe V8::C::String do
it "can hold Unicode values outside the Basic Multilingual Plane" do
string = V8::C::String::New("\u{100000}")
string.Utf8Value().should eql "\u{100000}"
end
end