From 530950e186891e045cb8348679c58f65f762f04e Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 12 Aug 2024 11:28:53 +0200 Subject: [PATCH] Don't use __proto__ This makes the library work in Deno, and in Node with `--disable-proto`. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index c8d1790..5a75b9e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -59,7 +59,7 @@ function Table (options){ * Inherit from Array. */ -Table.prototype.__proto__ = Array.prototype; +Object.setPrototypeOf(Table.prototype, Array.prototype); /** * Width getter