Browse Source

testing small change (#104)

pull/105/head
Jason Williams 5 years ago committed by GitHub
parent
commit
73d158cce2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/lib/js/value.rs
  2. 14
      tests/js/test.js

5
src/lib/js/value.rs

@ -935,10 +935,7 @@ pub fn same_value_non_number(x: &Value, y: &Value) -> bool {
from_value::<bool>(x.clone()).expect("failed to get value")
== from_value::<bool>(y.clone()).expect("failed to get value")
}
"object" => {
let b = ValueData::new_obj(None);
*x == *y
}
"object" => *x == *y,
_ => false,
}
}

14
tests/js/test.js

@ -1,12 +1,2 @@
let num = 12;
function fib(n) {
if (n <= 1) return 1;
return fib(n - 1) + fib(n - 2);
}
let res = fib(num);
res;
// (2 - 1 = 1) + (2 - 2 = rt 1)
let a = "hello world";
a;

Loading…
Cancel
Save