From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Lynch Newsgroups: gmane.lisp.guile.devel Subject: [PATCH 0/4] Support ECMAScript Test262 Assertion Harness Date: Wed, 28 Oct 2020 00:03:27 -0400 Message-ID: <20201028040330.22051-1-sean@seanplynch.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Sean Lynch To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Wed Oct 28 15:27:41 2020 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kXmQP-0000q4-01 for guile-devel@m.gmane-mx.org; Wed, 28 Oct 2020 15:27:41 +0100 Original-Received: from localhost ([::1]:52064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kXmQO-0002NG-0W for guile-devel@m.gmane-mx.org; Wed, 28 Oct 2020 10:27:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kXchf-0006Fh-Tc for guile-devel@gnu.org; Wed, 28 Oct 2020 00:04:51 -0400 Original-Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]:40542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kXche-0002AK-1b for guile-devel@gnu.org; Wed, 28 Oct 2020 00:04:51 -0400 Original-Received: by mail-qt1-x843.google.com with SMTP id m9so2710851qth.7 for ; Tue, 27 Oct 2020 21:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seanplynch-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iD5FR7pcsDtPuV8r25XTzYPnYUHvV0n0idb6s9tFhiM=; b=dIEu8sIBYd/fVwZAE2BrhTaDaFrwOJrCAlv7hTEKp4cJbe0S3725OGXdDcKaEHcSlp lgj0vA/RKoyv6FUmi0hQnKqqQ2N5wVVznasuS3R1tluHMQQu0H3vc4tGVH7+juxCTXM6 TWDmsK0QpT/tkdkszRpVkJyUjn4t/P7oPQlYZDFSWbxjdGkx6AX70VK217A82Z0EGXpq RRNXMwG1l6u3EclHelH4wakKuLUi4R95HwK8VuNRWPCCH2HluhFr5ca+Cs9P9jUduJSA EpQNdOLwmgiP3op0QjfPf7QLKVJNVb18FtplmtQmVVW/cNP5ps7f/4XhLAADyF0bXnZX JoyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iD5FR7pcsDtPuV8r25XTzYPnYUHvV0n0idb6s9tFhiM=; b=YX8fkIyY6DHtEcUKqgJ5/iFIWORvntGnOjk3J6Ee+9rWzpSV8acCX642bj8EBUI5gu 58EP3Hg6VnL3AI0Hi4V+vfK9j+W/NPoJx8f+B1iRA0qUSAEeDRfmdVqiw+RG9rGFuXfV KGLkegrD+ODbOrVCnKLILagJ5pWbIYa6uQ8sCKf9dZKvlH4VW1Vie7zdzubXh0RA9XK/ bH9T7VDQ4A62YdADH+6E1iH9Nfxg6WJEYVGbVVpydAoGp5eyp2IEpjRwf/oNr7EjVeFR 342R2ESXpLgnve7PVuuFXAbMnUMNSkwXW4s1vd3E0VDHe7VC01bKo1q7Sx4m06QTJQxH l9Rg== X-Gm-Message-State: AOAM533K5xEWM8G5dntf/Zhge7T/Uj6Mbppn/V990FCLFdOk1GdJ2l0K o4+5/33K5NK3UYxnNBMTFXEVdEJG7LXMya6R X-Google-Smtp-Source: ABdhPJwgn609K2lJbDHUi0Ig+1/qAXAvORmt4BXv7sWJRF2nKXgHcCh0IjateZog1jjV/0hljKqXEQ== X-Received: by 2002:ac8:3984:: with SMTP id v4mr5560014qte.240.1603857885467; Tue, 27 Oct 2020 21:04:45 -0700 (PDT) Original-Received: from guix.stny.rr.com (cpe-74-69-187-15.stny.res.rr.com. [74.69.187.15]) by smtp.googlemail.com with ESMTPSA id 67sm2318916qkd.14.2020.10.27.21.04.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Oct 2020 21:04:44 -0700 (PDT) X-Mailer: git-send-email 2.29.1 Received-SPF: neutral client-ip=2607:f8b0:4864:20::843; envelope-from=sean@seanplynch.com; helo=mail-qt1-x843.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 28 Oct 2020 10:27:17 -0400 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.io gmane.lisp.guile.devel:20602 Archived-At: Hello all, I've been hacking a bit on the ECMAScript implementation and thought it might be useful to be able to run the ECMAScript Test262 test suite, so I implemented just enough to be able to load the assertion harness required by all tests. I thought I'd check in to see if there was any interest in merging these changes. The relevant harness files can be found here: https://github.com/tc39/test262/blob/main/harness/sta.js https://github.com/tc39/test262/blob/main/harness/assert.js I plan to slowly use the test suite as a guide to increasing the ECMAScript coverage, and as such if anyone has any thoughts about other improvements to the ECMAScript compiler I would be all ears! Happy Hacking! Sean Sean Lynch (4): Support ecmascript return operator with no operand. Implement ecmascript try/catch. Implement ecmascript function prototype. Fix some reserved word usages in ecmascript implementation .../language/ecmascript/compile-tree-il.scm | 39 +++++++-- module/language/ecmascript/function.scm | 7 +- module/language/ecmascript/impl.scm | 18 +++- module/language/ecmascript/parse.scm | 51 +++++++++-- module/language/ecmascript/tokenize.scm | 84 +++++++------------ 5 files changed, 130 insertions(+), 69 deletions(-) -- 2.29.1