Ver código fonte

Update json.js

Lutz Roeder 4 anos atrás
pai
commit
7e192c0f8a
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      source/json.js

+ 3 - 3
source/json.js

@@ -350,9 +350,9 @@ json.TextReader = class {
         return value;
     }
 
-    _expect(text) {
-        for (let i = 0; i < text.length; i++) {
-            if (text[i] !== this._char) {
+    _expect(value) {
+        for (let i = 0; i < value.length; i++) {
+            if (value[i] !== this._char) {
                 this._unexpected();
             }
             this._next();