forked from boa-dev/boa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
string objects now display their primitive value, to_function() metho…
…d has been added to value, test added for String()
- Loading branch information
Jason Williams
committed
Mar 21, 2019
1 parent
bd6feb6
commit 7ba514b
Showing
5 changed files
with
116 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extern crate boa; | ||
use boa::js::string::_create; | ||
use boa::js::object::PROTOTYPE; | ||
use boa::js::value::{ValueData}; | ||
|
||
#[test] | ||
fn check_string_constructor_is_function() { | ||
let global = ValueData::new_obj(None); | ||
let string_constructor = _create(global); | ||
assert_eq!(string_constructor.is_function(), true); | ||
} |