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:
parent
155cd68d20
commit
47a9461e23
1 changed files with 8 additions and 0 deletions
8
spec/c/string_spec.rb
Normal file
8
spec/c/string_spec.rb
Normal 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
|
Loading…
Reference in a new issue