mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 03:21:20 -05:00
(experimental) made new a unary operator
This commit is contained in:
@@ -156,5 +156,6 @@ ok c is 3
|
||||
|
||||
|
||||
# Instanceof.
|
||||
ok new String instanceof String
|
||||
ok new Number not instanceof String
|
||||
# FIXME: These parentheses are workaround of #
|
||||
ok (new String) instanceof String
|
||||
ok (new Number) not instanceof String
|
||||
|
||||
Reference in New Issue
Block a user