From f45e9e070c93ebbd83d488bdd775987a4d75c201 Mon Sep 17 00:00:00 2001 From: t7yang Date: Mon, 10 Jan 2022 08:38:08 +0800 Subject: fix yari h2m dry run errors --- files/zh-tw/web/javascript/reference/strict_mode/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/zh-tw/web/javascript/reference/strict_mode/index.html') diff --git a/files/zh-tw/web/javascript/reference/strict_mode/index.html b/files/zh-tw/web/javascript/reference/strict_mode/index.html index b37e56f1ca..a6ebcd9b70 100644 --- a/files/zh-tw/web/javascript/reference/strict_mode/index.html +++ b/files/zh-tw/web/javascript/reference/strict_mode/index.html @@ -17,8 +17,8 @@ translation_of: Web/JavaScript/Reference/Strict_mode

參考 過渡到嚴格模式,如果你希望將你的程式碼在  JavaScript 語法嚴格、語法受限下執行。

-
-

Sometimes, you'll see the default, non-strict, mode referred to as "sloppy mode". This isn't an official term, but be aware of it, just in case.

+
+

Note: Sometimes, you'll see the default, non-strict, mode referred to as "sloppy mode". This isn't an official term, but be aware of it, just in case.

用法

@@ -98,8 +98,8 @@ delete Object.prototype; // throws a TypeError

Fourth, strict mode prior to Gecko 34 requires that all properties named in an object literal be unique. Normal code may duplicate property names, with the last one determining the property's value. But since only the last one does anything, the duplication is simply a vector for bugs, if the code is modified to change the property value other than by changing the last instance. Duplicate property names are a syntax error in strict mode:

-
-

This is no longer the case in ECMAScript 2015 ({{bug(1041128)}}).

+
+

Note: This is no longer the case in ECMAScript 2015 ({{bug(1041128)}}).

'use strict';
-- 
cgit v1.2.3-54-g00ecf