Skip Menu |
 

This queue is for tickets about the JavaScript CPAN distribution.

Report information
The Basics
Id: 26215
Status: open
Priority: 0/
Queue: JavaScript

People
Owner: CLAESJAC [...] cpan.org
Requestors: jesset [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.03
Fixed in: 1.04

Attachments


Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 0DB364D80BE for <bug-JavaScript [...] rt.cpan.org>; Tue, 10 Apr 2007 04:13:27 -0400 (EDT)
Received: (qmail 27163 invoked by alias); 10 Apr 2007 08:13:26 -0000
Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.229) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 10 Apr 2007 01:13:16 -0700
Received: by wr-out-0506.google.com with SMTP id 50so1056054wri for <bug-JavaScript [...] rt.cpan.org>; Tue, 10 Apr 2007 01:13:12 -0700 (PDT)
Received: by 10.114.137.2 with SMTP id k2mr2715837wad.1176192791617; Tue, 10 Apr 2007 01:13:11 -0700 (PDT)
Received: by 10.114.95.15 with HTTP; Tue, 10 Apr 2007 01:13:11 -0700 (PDT)
Delivered-To: cpan-bug+javascript [...] diesel.bestpractical.com
MIME-Version: 1.0
Subject: Perl exceptions from bound JS constructors do not propagate
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aVGqA7Ii3ZdpIqhqDi0AbJkShtEFKQ2V8JDlWncjilQgRieXTzWRRUblp2jSAAn+vMPJsWTlA1/+s+VoBgTet3/3n82c2PF2NDDPHC73ZZ8N3tmFnXPAuJUrN0J+bT+lZa+JIvA6+laQYXcB5bhWkk0z0rmRdVYtphIkW5pEs28=
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_POLICY_SIGNSOME,DK_SIGNED,SPF_PASS
Return-Path: <jesset [...] gmail.com>
Dkim-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=E3c7tcUaiLYN1md7K3EUMc4Db6CBL5tFpjfFqmoy8ACIAGwSrHkU59bBlldDoQG9xRCWt0VkmIkSXRTk9TBPKOS1gq47al2IZU1n0465QR1Na9rnSK7amTBRGQghrevDrJqnpQeqM+xtAKnqQVZiw05vIWobn/a4XekCssKTNLk=
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-JavaScript [...] rt.cpan.org
Date: Tue, 10 Apr 2007 01:13:11 -0700
Received-SPF: pass (x1.develooper.com: domain of jesset [...] gmail.com designates 64.233.184.229 as permitted sender)
Message-Id: <af62343b0704100113i648fdc95qbaa34e31e873152c [...] mail.gmail.com>
Content-Type: multipart/mixed; boundary="----=_Part_21322_2893954.1176192791519"
To: bug-JavaScript [...] rt.cpan.org
From: "Jesse Thompson" <jesset [...] gmail.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"; format="flowed"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1072
I am using JavaScript v1.03 with Perl v5.8.4 on Linux kernel 2.4.27-2-386 running Debian sarge (JavaScript.pm compiled against Spidermonkey 1.60 straight from Mozilla, not from Debian packaged version). It appears as though Perl exceptions (such as 'die' statements or run time errors) that occur while running a subroutine bound as a JS constructor do not propagate to JS level as an exception. If such a "Perl exception" happens during a JS method (object or static) instead however, the error propagates as expected. Attached is a test case. Run as is, the diagnostic displays a blessed object. when you uncomment "test point 2" you get a well documented error message. When you uncomment "Test point #1" however, the message goes unreported and you get a blank (uncontructed) object instead of a blessed hash. Suggested workarounds prior to fix: If appropriate, a developer may arrange to have his JavaScript forgo formal constructors and simply call methods right after construction to accomplish the needed housekeeping. - - Jesse Thompson Webformix, Bend OR
content-type: text/plain; charset="utf-8"; name="JavaScript_testcase_20070410.txt"
content-disposition: attachment; filename="JavaScript_testcase_20070410.txt"
X-Attachment-Id: f_f0c2oxhi
Content-Transfer-Encoding: base64
X-RT-Original-Encoding: ANSI_X3.4-1968
Content-Length: 652

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VERIFIED,DK_SIGNED,HTML_MESSAGE,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-3887-1195487263-1849.26215-10-0 [...] rt.cpan.org>
References: <rt-3.6.HEAD-3887-1195487263-1849.26215-10-0 [...] rt.cpan.org>
Content-Type: multipart/alternative; boundary="----=_Part_17247_233151.1195506937933"
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 0D63E4D81A5 for <bug-JavaScript [...] rt.cpan.org>; Mon, 19 Nov 2007 16:15:50 -0500 (EST)
Received: (qmail 30346 invoked by alias); 19 Nov 2007 21:15:50 -0000
Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.228) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 19 Nov 2007 13:15:47 -0800
Received: by nz-out-0506.google.com with SMTP id x7so1335135nzc for <bug-JavaScript [...] rt.cpan.org>; Mon, 19 Nov 2007 13:15:38 -0800 (PST)
Received: by 10.114.67.2 with SMTP id p2mr410801waa.1195506937940; Mon, 19 Nov 2007 13:15:37 -0800 (PST)
Received: by 10.115.54.16 with HTTP; Mon, 19 Nov 2007 13:15:37 -0800 (PST)
Delivered-To: cpan-bug+javascript [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #26215] Resolved: Perl exceptions from bound JS constructors do not propagate
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lJPUpMEChIz2e4M5qjTnbtalLHYlU/ccrcgy12XoNidUpDvlqmly8kodvB6QFXPUu/dtsilHkM/JXuAlMdZzkcLGB0oWHyf9SC8R1C7hhwYSps2aDSKSY1tzfn99emJulYBSmt5nXBQgYWK9C7EejtvgAMtlyOawUpMsl3tBhUQ=
Return-Path: <jesset [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=hne1tRzOUjgfam5XyOQhLpz9p849g0L9e/GSaPuaQgQ=; b=eRuneInjRpCKlrdjsl3JFAA2aXxziv2z/RzB0t67Dy0n+8RqsRh8Wad+GGomJ2AfI0zOzPTKs65xGiBWhlKnisCUxnMr7USZxPMpE/kgg7tJgAjP2nl7Gge/f7d3Li4iRibXeAh3SqAi22tChpETNXGMfvuruEgNmKhK9SiRZ2M=
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-JavaScript [...] rt.cpan.org
Date: Mon, 19 Nov 2007 13:15:37 -0800
Message-Id: <af62343b0711191315n2b7ab1p74843b275a0d99eb [...] mail.gmail.com>
To: bug-JavaScript [...] rt.cpan.org
From: "Jesse Thompson" <jesset [...] gmail.com>
RT-Message-ID: <rt-3.6.HEAD-3936-1195506959-562.26215-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: utf-8
Content-Length: 517
Download (untitled) / with headers
text/plain 517b
Righteous :) I don't have an environment set up right now to confirm your success. but congratulations man. Are there other people who have picked up the banner of this project? Is there a community developing yet? - - Jesse On Nov 19, 2007 7:47 AM, Claes Jakobsson via RT <bug-JavaScript@rt.cpan.org> wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=26215 > > > According to our records, your request has been resolved. If you have any > further questions or concerns, please respond to this message. >
Content-Type: text/html; charset=ISO-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 869


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.