[英]Switching from Rhino to V8 causes Error code PERMISSION_DENIED
最近我將我的谷歌幻燈片腳本運行時從Rhino切換到V8 。 我測試了我的附加組件,但出現錯誤: We're sorry, a server error occurred while reading from storage. Error code PERMISSION_DENIED We're ...
[英]Switching from Rhino to V8 causes Error code PERMISSION_DENIED
最近我將我的谷歌幻燈片腳本運行時從Rhino切換到V8 。 我測試了我的附加組件,但出現錯誤: We're sorry, a server error occurred while reading from storage. Error code PERMISSION_DENIED We're ...
[英]Google Apps Script inheritance on V8
我最近注意到 V8 引擎的一種奇怪行為。 當繼承在單獨文件中找到的 class 時,引擎無法識別基礎 class,例如以下配置失敗: BaseFoo.tsexport class BaseFoo {} SpecialFoo.tsimport { BaseFoo } from "./BaseF ...
[英]In Google Apps Script do breakpoints work differently when using the new V8 runtime?
使用舊的運行時,我可以在代碼的任何位置設置斷點。 使用新的 v8 運行時斷點顯然必須在我從調試器運行的 function 中? 這是預期的行為嗎? 我在調試器或我的代碼中做錯了嗎? 也許它的結構不正確? 最小的例子: V8 運行時間: 我可以在var test4 = 4上設置斷點,然后使用調試器 ...
[英]Get a reference to the script object
至少在 V8 中,在調試器中,您會看到local 、 script和global對變量進行分類。 我得到了對global的引用。 this ,您只需將其設置為屬性,以便稍后在需要時使用。 但是,我找不到如何保存對script object 的引用。 我認為它存在,因為這是調試器在手表 windo ...
[英]Unable to access exception properties in v8 runtime
當我的代碼中發生異常時,我正在嘗試獲取堆棧跟蹤(和其他詳細信息)。 為此,請使用以下代碼: function catchException() { var errLog = []; try { var temp; temp.split(","); } catch (exception) { for ...
[英]problem using MailApp.sendEmail(emailAddress, subject, message); with the new Chrome V8 runtime
我正在運行一些 Google Apps 腳本,它與 Google 表格交互,該表格在表格更新時提取和比較一些值,如果超過某些標准,則發送 email。 它已經運行了一年多,但最近停止了,我發現問題出在新的 Chrome V8 運行時環境上。 如果我運行舊版 java 環境——它可以工作,沒問題。 該 ...
[英]V8 engine no longer breaks on errors
此問題已報告給 Google: https : //issuetracker.google.com/issues/152948662 問題的簡短描述 在 Rhino 運行時,如果用戶按下工具欄上的“調試”按鈕,腳本調試器 (script.google.com) 將在包含錯誤(已處理或未處理)的任何 ...
[英]Issue with scopes when switching Google Apps Script projects to V8 runtime
由於 Google Apps Script 強行推動“Rhino”到“V8”引擎,應用程序正在自動從 Rhino 遷移到 V8。 所以我們的應用程序要求在“ appscript.json ”文件中手動指定“范圍”。 請檢查下圖: 文件 :- 當我像下面這樣更新時,它工作正常。 我 ...
[英]Error:Exception: You do not have permission to call Session.getActiveUser. Required permissions: https://www.googleapis.com/auth/userinfo.email
我最近將我的一個項目遷移到了 appscript 的新 V8 引擎。我收到了這個異常 例外:您無權調用 Session.getActiveUser。 所需權限: https : //www.googleapis.com/auth/userinfo.email..Session.getActive ...