Index: third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java |
diff --git a/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java b/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java |
index 62624947774bc94aec35aea3032110261e659768..b8db07d9b2f19f9d739cb76339ca3cd6f1c3c900 100644 |
--- a/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java |
+++ b/third_party/closure_compiler/runner/test/com/google/javascript/jscomp/ChromePassTest.java |
@@ -219,6 +219,15 @@ public class ChromePassTest extends CompilerTestCase { |
"a.prototype.c;"); |
} |
+ public void testCrDefinePropertyCalledWithouthThirdArgumentMeansCrPropertyKindJs() |
+ throws Exception { |
+ test( |
+ "cr.defineProperty(a.prototype, 'c');", |
+ "cr.defineProperty(a.prototype, 'c');\n" + |
+ "/** @type {?} */\n" + |
+ "a.prototype.c;"); |
+ } |
+ |
public void testCrDefinePropertyDefinesUnquotedPropertyOnPrototypeWhenFunctionIsPassed() |
throws Exception { |
test( |