CS-Notes/docs/_style/prism-master/tests/languages/javascript/supposed-classes_feature.test
2018-12-19 14:09:39 +08:00

31 lines
574 B
Plaintext

Foo.prototype.bar;
Bar.constructor;
fooBar.prototype.bar;
----------------------------------------------------
[
["class-name", "Foo"],
["punctuation", "."],
"prototype",
["punctuation", "."],
"bar",
["punctuation", ";"],
["class-name", "Bar"],
["punctuation", "."],
"constructor",
["punctuation", ";"],
"\nfooBar",
["punctuation", "."],
"prototype",
["punctuation", "."],
"bar",
["punctuation", ";"]
]
----------------------------------------------------
Checks for supposed function variables based on standard function invocations or modifications.