Revision f230a1cf deps/v8/src/messages.js

View differences:

deps/v8/src/messages.js
796 796
}
797 797

  
798 798
function CallSiteGetThis() {
799
  return this[CallSiteStrictModeKey] ? void 0 : this[CallSiteReceiverKey];
799
  return this[CallSiteStrictModeKey] ? UNDEFINED : this[CallSiteReceiverKey];
800 800
}
801 801

  
802 802
function CallSiteGetTypeName() {
......
826 826
}
827 827

  
828 828
function CallSiteGetFunction() {
829
  return this[CallSiteStrictModeKey] ? void 0 : this[CallSiteFunctionKey];
829
  return this[CallSiteStrictModeKey] ? UNDEFINED : this[CallSiteFunctionKey];
830 830
}
831 831

  
832 832
function CallSiteGetFunctionName() {
......
1092 1092
    var array = [];
1093 1093
    %MoveArrayContents(frames, array);
1094 1094
    formatting_custom_stack_trace = true;
1095
    var stack_trace = void 0;
1095
    var stack_trace = UNDEFINED;
1096 1096
    try {
1097 1097
      stack_trace = $Error.prepareStackTrace(obj, array);
1098 1098
    } catch (e) {
......
1160 1160
    // Turn this accessor into a data property.
1161 1161
    %DefineOrRedefineDataProperty(obj, 'stack', result, NONE);
1162 1162
    // Release context values.
1163
    stack = error_string = void 0;
1163
    stack = error_string = UNDEFINED;
1164 1164
    return result;
1165 1165
  };
1166 1166

  
......
1171 1171
    %DefineOrRedefineDataProperty(this, 'stack', v, NONE);
1172 1172
    if (this === obj) {
1173 1173
      // Release context values if holder is the same as the receiver.
1174
      stack = error_string = void 0;
1174
      stack = error_string = UNDEFINED;
1175 1175
    }
1176 1176
  };
1177 1177

  
......
1213 1213
        // Define all the expected properties directly on the error
1214 1214
        // object. This avoids going through getters and setters defined
1215 1215
        // on prototype objects.
1216
        %IgnoreAttributesAndSetProperty(this, 'stack', void 0, DONT_ENUM);
1216
        %IgnoreAttributesAndSetProperty(this, 'stack', UNDEFINED, DONT_ENUM);
1217 1217
        if (!IS_UNDEFINED(m)) {
1218 1218
          %IgnoreAttributesAndSetProperty(
1219 1219
            this, 'message', ToString(m), DONT_ENUM);
......
1251 1251
  while (error && !%HasLocalProperty(error, name)) {
1252 1252
    error = %GetPrototype(error);
1253 1253
  }
1254
  if (error === null) return void 0;
1254
  if (IS_NULL(error)) return UNDEFINED;
1255 1255
  if (!IS_OBJECT(error)) return error[name];
1256 1256
  // If the property is an accessor on one of the predefined errors that can be
1257 1257
  // generated statically by the compiler, don't touch it. This is to address
......
1260 1260
  if (desc && desc[IS_ACCESSOR_INDEX]) {
1261 1261
    var isName = name === "name";
1262 1262
    if (error === $ReferenceError.prototype)
1263
      return isName ? "ReferenceError" : void 0;
1263
      return isName ? "ReferenceError" : UNDEFINED;
1264 1264
    if (error === $SyntaxError.prototype)
1265
      return isName ? "SyntaxError" : void 0;
1265
      return isName ? "SyntaxError" : UNDEFINED;
1266 1266
    if (error === $TypeError.prototype)
1267
      return isName ? "TypeError" : void 0;
1267
      return isName ? "TypeError" : UNDEFINED;
1268 1268
  }
1269 1269
  // Otherwise, read normally.
1270 1270
  return error[name];

Also available in: Unified diff