mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
added the typeof operater as an OpNode
This commit is contained in:
6
test/fixtures/execution/keyword_operators.cs
vendored
6
test/fixtures/execution/keyword_operators.cs
vendored
@@ -1,10 +1,10 @@
|
||||
a: 5
|
||||
atype: typeof(a)
|
||||
atype: typeof a
|
||||
|
||||
b: "hello"
|
||||
btype: typeof(b)
|
||||
btype: typeof b
|
||||
|
||||
Klass: => .
|
||||
k: new Klass()
|
||||
|
||||
print(atype is 'number' and btype is 'string' and k instanceof(Klass))
|
||||
print(atype is 'number' and btype is 'string' and k instanceof Klass)
|
||||
4
test/fixtures/execution/keyword_operators.js
vendored
4
test/fixtures/execution/keyword_operators.js
vendored
@@ -1,8 +1,8 @@
|
||||
(function(){
|
||||
var a = 5;
|
||||
var atype = typeof(a);
|
||||
var atype = typeof a;
|
||||
var b = "hello";
|
||||
var btype = typeof(b);
|
||||
var btype = typeof b;
|
||||
var Klass = function() {
|
||||
};
|
||||
var k = new Klass();
|
||||
|
||||
Reference in New Issue
Block a user