Index: test/mjsunit/regress/regress-crbug-181422.js |
diff --git a/src/symbol.js b/test/mjsunit/regress/regress-crbug-181422.js |
similarity index 85% |
copy from src/symbol.js |
copy to test/mjsunit/regress/regress-crbug-181422.js |
index b7f9dc9496aac589e89e2d2761ebe6431a36008e..52826f3110db925c2d66d571970b2676f1bb0a1f 100644 |
--- a/src/symbol.js |
+++ b/test/mjsunit/regress/regress-crbug-181422.js |
@@ -25,15 +25,8 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-"use strict"; |
+assertArrayEquals(["\u00a0"], "ab\u00a0cd".match(/\s/)); |
+assertArrayEquals(["a", "b", "c", "d"], "ab\u00a0cd".match(/\S/g)); |
-var $Symbol = function() { return %CreateSymbol() } |
-global.Symbol = $Symbol |
- |
-// Symbols only have a toString method and no prototype. |
-var SymbolDelegate = { |
- __proto__: null, |
- toString: $Object.prototype.toString |
-} |
- |
-$Object.freeze(SymbolDelegate) |
+assertArrayEquals(["\u00a0"], "\u2604b\u00a0cd".match(/\s/)); |
+assertArrayEquals(["\u2604", "b", "c", "d"], "\u2604b\u00a0cd".match(/\S/g)); |