aboutsummaryrefslogtreecommitdiff
path: root/lib/ast.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-12-28 20:26:15 +0000
committerGitHub <noreply@github.com>2019-12-28 20:26:15 +0000
commitd9cd3d33c8f2b769da922d355373d466f8b30704 (patch)
tree095c4497bfeaacb24437c950e685df180645687c /lib/ast.js
parent22b47cdd639263313317b77a3166afad767a7ef6 (diff)
downloadtracifyjs-d9cd3d33c8f2b769da922d355373d466f8b30704.tar.gz
tracifyjs-d9cd3d33c8f2b769da922d355373d466f8b30704.zip
enhance `evaluate` (#3649)
Diffstat (limited to 'lib/ast.js')
-rw-r--r--lib/ast.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ast.js b/lib/ast.js
index b1704915..30885905 100644
--- a/lib/ast.js
+++ b/lib/ast.js
@@ -618,7 +618,7 @@ var AST_PropAccess = DEFNODE("PropAccess", "expression property", {
getProperty: function() {
var p = this.property;
if (p instanceof AST_Constant) {
- return p.getValue();
+ return p.value;
}
if (p instanceof AST_UnaryPrefix
&& p.operator == "void"
@@ -824,9 +824,6 @@ var AST_This = DEFNODE("This", null, {
var AST_Constant = DEFNODE("Constant", null, {
$documentation: "Base class for all constants",
- getValue: function() {
- return this.value;
- }
});
var AST_String = DEFNODE("String", "value quote", {