From 2fdf40c1758c583f5b7a64e21ddc8c897cd50917 Mon Sep 17 00:00:00 2001 From: wandras Date: Mon, 30 Aug 2021 15:20:12 +0200 Subject: [PATCH] Update Object.create.js Error message typo correction proposal. --- Object.create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Object.create.js b/Object.create.js index 43bc81a..02b24e1 100644 --- a/Object.create.js +++ b/Object.create.js @@ -5,7 +5,7 @@ if (typeof Object.create !== 'function') { Object.create = function (o) { if (arguments.length !== 1) { - throw new Error('Object.crete polyfill only accept one parameter'); + throw new Error('Object.create polyfill only accepts one parameter'); } function F() {}