mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
482 B
35 lines
482 B
/*===
|
|
boolean false
|
|
boolean false
|
|
boolean false
|
|
boolean false
|
|
boolean false
|
|
boolean false
|
|
boolean true
|
|
boolean false
|
|
boolean false
|
|
===*/
|
|
|
|
function basicTest() {
|
|
function test(x) {
|
|
var t = Array.isArray(x);
|
|
print(typeof t, t);
|
|
}
|
|
|
|
test(undefined);
|
|
test(null);
|
|
test(true);
|
|
test(false);
|
|
test(123);
|
|
test('foo');
|
|
test([1,2]);
|
|
test({ foo: 1, bar:2 });
|
|
test(function(){});
|
|
}
|
|
|
|
try {
|
|
basicTest();
|
|
} catch (e) {
|
|
print(e);
|
|
}
|
|
|
|
|