We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23b342a commit b710608Copy full SHA for b710608
docs/features/error.md
@@ -79,19 +79,15 @@ unknownVariable
79
// Uncaught ReferenceError: unknownVariable is not defined
80
```
81
82
-另一种触发场景是,将一个值分配给无法分配的对象,比如对函数的运行结果或者`this`赋值。
+另一种触发场景是,将一个值分配给无法分配的对象,比如对函数的运行结果赋值。
83
84
```javascript
85
// 等号左侧不是变量
86
console.log() = 1
87
// Uncaught ReferenceError: Invalid left-hand side in assignment
88
-
89
-// this 对象不能手动赋值
90
-this = 1
91
-// ReferenceError: Invalid left-hand side in assignment
92
93
94
-上面代码对函数`console.log`的运行结果和`this`赋值,结果都引发了`ReferenceError`错误。
+上面代码对函数`console.log`的运行结果赋值,结果引发了`ReferenceError`错误。
95
96
### RangeError 对象
97
0 commit comments