Permalink
Browse files

Issue #1460: Fixed a typo in messages.js

Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
  • Loading branch information...
1 parent c105d66 commit 989da6ef19e7bd7de02b1c24c8a600cc1b64609a @SheetJSDev SheetJSDev committed with valueof Jan 21, 2014
Showing with 6 additions and 6 deletions.
  1. +2 −2 src/messages.js
  2. +4 −4 tests/unit/core.js
View
@@ -78,8 +78,8 @@ var warnings = {
W006: "Confusing minuses.",
W007: "Confusing pluses.",
W008: "A leading decimal point can be confused with a dot: '{a}'.",
- W009: "The array literal notation [] is preferrable.",
- W010: "The object literal notation {} is preferrable.",
+ W009: "The array literal notation [] is preferable.",
+ W010: "The object literal notation {} is preferable.",
W011: "Unexpected space after '{a}'.",
W012: "Unexpected space before '{a}'.",
W013: "Missing space after '{a}'.",
View
@@ -61,7 +61,7 @@ exports.testNewArray = function (test) {
TestRun(test).test(code2);
TestRun(test)
- .addError(1, "The array literal notation [] is preferrable.")
+ .addError(1, "The array literal notation [] is preferable.")
.test('new Array();');
test.done();
@@ -104,11 +104,11 @@ exports.testNewObject = function (test) {
TestRun(test).test(code1);
TestRun(test)
- .addError(1, "The object literal notation {} is preferrable.")
+ .addError(1, "The object literal notation {} is preferable.")
.test('Object();');
TestRun(test)
- .addError(1, "The object literal notation {} is preferrable.")
+ .addError(1, "The object literal notation {} is preferable.")
.test('new Object();');
test.done();
@@ -777,4 +777,4 @@ exports.testArrayPrototypeExtensions = function (test) {
JSHINT("var x = 123;\nlet y = 456;\nconst z = 123;");
delete Array.prototype.undefinedPrototypeProperty;
test.done();
-};
+};

0 comments on commit 989da6e

Please sign in to comment.