mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
Value::Equals(), Value::StrictEquals()
This commit is contained in:
parent
6902e37787
commit
30af30edee
3 changed files with 18 additions and 13 deletions
|
|
@ -3,6 +3,16 @@
|
|||
namespace rr {
|
||||
|
||||
void Value::Init() {
|
||||
ClassBuilder("Value");
|
||||
ClassBuilder("Value").
|
||||
defineMethod("Equals", &Equals).
|
||||
defineMethod("StrictEquals", &StrictEquals);
|
||||
}
|
||||
|
||||
VALUE Value::Equals(VALUE self, VALUE other) {
|
||||
return Convert(Value(self)->Equals(Value(other)));
|
||||
}
|
||||
|
||||
VALUE Value::StrictEquals(VALUE self, VALUE other) {
|
||||
return Convert(Value(self)->StrictEquals(Value(other)));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue