Verify xwidget USE_LSB_TAG assumption
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Feb 2017 21:03:12 +0000 (13:03 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 20 Feb 2017 21:04:09 +0000 (13:04 -0800)
* src/xwidget.c (Fxwidget_webkit_execute_script):
Add verification.  Problem reported by Andreas Schwab (Bug#25816#8).

src/xwidget.c

index dc705bb14048a9af3f21a1dd7af2d74a597e63a0..e6de5da8e694cb75e598522c56462946868ea986 100644 (file)
@@ -720,6 +720,8 @@ argument procedure FUN.*/)
   GAsyncReadyCallback callback
     = FUNCTIONP (fun) ? webkit_javascript_finished_cb : NULL;
 
+  /* FIXME: The following hack assumes USE_LSB_TAG.  */
+  verify (USE_LSB_TAG);
   /* FIXME: This hack might lead to disaster if FUN is garbage
      collected before store_xwidget_js_callback_event makes it visible
      to Lisp again.  See the FIXME in webkit_javascript_finished_cb.  */