"catch (e)"した場合、スローされたオブジェクトがそのままeに設定されると思っていたのだが、 もう少し複雑だった。 Javaで実装されたメソッドが例外をスローした場合、e.javaExceptionにJavaの例外オブジェクトが入っている スクリプトエラーの場合、e.rhinoExceptionにRhinoの例外オブジェクトが入っている スクリプトで明示的にthrowを実行した場合、eにスローされたオブジェクトそのものが入っている 1. 実行するスクリプト(exception-type.js): var stdout = java.lang.System.out; function catchAndDumpException(func) { try { func(); } catch (e) { if (e.javaException) { stdout.println("e.ja
News Rhino in Spring 1.3 was released, upgrading the bundled Rhino to the latest released version, 1.7R2. For the full list of changes see the changelog. Work is ongoing on the version 2.0 which will focus on support for CommonJS. What is it? Rhino in Spring is a project that intends to integrate Mozilla Rhino JavaScript interpreter, the interpreter for the best (in our opinion) dynamic language o
Recent entries Re: Adaで超いい加減HTTPサーバ iwanaga 2010-01-10 javascriptでthisと戯れる iwanaga 2009-11-13 第一回五反田Emacs勉強会のUstream配信 iwanaga 2009-09-29 わかった気になる気になるandroid iwanaga 2009-07-04 Rhinoを組み込む為のイントロダクション iwanaga 2009-02-02 Rhino Code Readingの更新が滞ってしまってから久しいですが、 最近Rhinoの組込みを実践してみたのでそれを基にtipsに近いイントロダクションを書きます。 1 組込む1.1 最も簡単な組み込み public class EvalString { public static void main(String args[]) { // 1. Con
Multi-threaded JavaScript on the JVM Ringo is a JavaScript platform built on the JVM and optimized for server-side applications. It takes a non-dogmatic stance on things like I/O paradigms. Ringo ships with a large set of built-in modules and follows the CommonJS standard. Ringo in a Nutshell Stability Flexibility Security Open Source Ringo is powered by the Mozilla Rhino JavaScript engine, which
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く